@mixin whbc($w,$h,$b,$c){
    width: $w;
    height: $h;
    background-color: $b;
    color: $c;
}
div{
    text-overflow: ellipsis;
    @include whbc(200px,200px,pink,#666);
}
h2{
    text-align:center;
    line-height: 50px;
    @include whbc(100%,50px,tomato,skyblue);
}
span{
    display: inline-block;
    @include whbc(300px,60px,#250555,#fff);
}